Conversation
ppoliani
left a comment
There was a problem hiding this comment.
- Replace all
letwithconst - Avoid using
function; preferconstinstead
app.js
Outdated
app.js
Outdated
There was a problem hiding this comment.
one suggestion; since we're using the functional programming paradigm we really like to follow the principles from the style of programming.
one of the suggestion is to use name binding. This applies for functions, as well.
This can be rewritten like this:
const run = async () => {}
app.js
Outdated
There was a problem hiding this comment.
prefer const over let. It's nice to keep reference transparency
app.js
Outdated
app.js
Outdated
There was a problem hiding this comment.
await CappedMintableToken.methods.mint(TokenDistribution.options.address, 15000, {from: account.address})
app.js
Outdated
There was a problem hiding this comment.
const deployContract = (contractPath, account, args) => {}
contracts/CappedMintableToken.sol
Outdated
There was a problem hiding this comment.
import "openzeppelin-solidity/token/ERC20/ERC20Capped.sol";
contracts/CappedMintableToken.sol
Outdated
There was a problem hiding this comment.
you can remove this function because it will be inherited from the ERC20Capped
contracts/TokenDistribution.sol
Outdated
app.js
Outdated
There was a problem hiding this comment.
you can use promisify https://nodejs.org/dist/latest-v8.x/docs/api/util.html and then use async/await
No description provided.